<template>
    <views class="facilitator_invoice_records_look">
        <div class="block_detail">
            <viewTitle :title="'开票信息'" :border="true"> </viewTitle>
            <div class="row_block">
                <div class="info">
                    <div class="left">发票抬头:</div>
                    <div class="right">{{detail.enterprise_name}}</div>
                </div>
                <div class="info">
                    <div class="left">发票金额:</div>
                    <div class="right">{{detail.money}}</div>
                </div>
            </div>
            <div class="row_block">
                <div class="info">
                    <div class="left">收货人- 电话:</div>
                    <div class="right">{{detail.receiver_address}} - {{detail.receiver_mobile}}</div>
                </div>
                <div class="info">
                    <div class="left">收获地址:</div>
                    <div class="right">{{detail.receiver_address}}</div>
                </div>
            </div>
            <div class="row_block">
                <div class="info">
                    <div class="left">税务登记证号:</div>
                    <div class="right">{{detail.enterprise_code}}</div>
                </div>
                <div class="info">
                    <div class="left">开票类型:</div>
                    <div class="right">{{detail.invoice_type}}</div>
                </div>
            </div>
            <div class="row_block">
                <div class="info">
                    <div class="left">开票人名称:</div>
                    <div class="right">{{detail.open_user_name}}</div>
                </div>
                <div class="info">
                    <div class="left">开票时间</div>
                    <div class="right">{{detail.open_invoice_timed}}</div>
                </div>
            </div>
            <div class="row_block">
                <div class="info">
                    <div class="left">审核人名称:</div>
                    <div class="right">{{detail.check_user_name}}</div>
                </div>
                <div class="info">
                    <div class="left">审核人时间:</div>
                    <div class="right">{{detail.checked_time}}</div>
                </div>
            </div>
            <div class="row_block">
                <div class="info">
                    <div class="left">邮寄人名称:</div>
                    <div class="right">{{detail.delivery_user_name}}</div>
                </div>
                <div class="info">
                    <div class="left">邮寄时间:</div>
                    <div class="right">{{detail.delivery_timed}}</div>
                </div>
            </div>
              <div class="row_block">
                <div class="info">
                    <div class="left">发票状态:</div>
                    <div class="right">{{detail.invoice_status}}</div>
                </div>
            </div>
        </div>
    </views>
</template>

<script>
export default {
    name:"FacilitatorInvoiceRecordsLook",
    data(){
        return  {
            detail:{
                enterprise_name   : '',            //'发票抬头',
                enterprise_code   : '',             //'统一信用编号',
                receiver_address  : '',             //  '收货地址',
                receiver_name     : '',             //  '收货人',
                receiver_mobile   : '',             //  '收货人电话',
                invoice_type      : '',             //  '开票类型',
                invoice_status    : '',             //  '状态',
                money             : '',             //  '金额',
                checked_time      : '',             //  '审核时间',
                check_user_name   : '',             //  '审核人名称'，
                open_invoice_timed    : '',         //  '开票时间',
                open_user_name    : '',             //  '开票人名称',
                delivery_timed    : '',             //  '邮寄时间',
                delivery_user_name    : ''          //  '邮寄人名称'
            }
           
        }
    },
    mounted(){
        this.invoiceDetail();
    },
    methods:{
        invoiceDetail(){
            this.$raxios.post(this.$mapapi.invoiceDetail,{data:{enterprise_invoice_id: this.$route.query.enterprise_invoice_id}}).then(res => {
                if(res.code != 200&&res.code!=501)     return  Promise.reject(res.msg);
                this.detail = res.data;
            }).catch(res => {
                this.$message.error(res);
            });
        }
    }
}
</script>

<style  lang="less" :scope="true" src="@/style/facilitator/facilitator_invoice_records_look.less">

</style>
